package com.bosc.modeling.common;

import com.bosc.modeling.common.Const;
import com.bosc.modeling.common.FailureResponse;
import com.bosc.modeling.common.SuccessResponse;

public class ResponseFactory {
    public static SuccessResponse successResponse(Object data){
        return new SuccessResponse(Const.RESPONSE_SUCCESS, data);
    }
    public static FailureResponse failureResponse(String errorCode, String errorDesc){
        return new FailureResponse(Const.RESPONSE_FAILURE, errorCode, errorDesc);
    }
}
